package yz.com.javautil.test;

/**
 * @author Administrator
 */
public class PathDeal {
    public static void main(String[] args) {
        String path = "D:/xinanAB/";
        int lastIndexOf = path.lastIndexOf("/");
        StringBuilder sb = new StringBuilder(path);
        sb.insert(lastIndexOf, "dir");
        System.out.println(sb.toString());

    }
}
